package www.openteam.com.bean;

/**
 * Created by Administrator on 2019-04-02.
 */

public class FOBPrice {
    //=IF(V120="FOB HK",0,                     IF(V120="FOB YT",0,                 IF(V120="HK Local",2150,0)))
    // =IF(V120="FOB HK",5557*1.05,            IF(V120="FOB YT",3720*1.1,          IF(V120="HK Local",2850,0)))
    //=IF(V120="FOB HK",6472*1.05,             IF(V120="FOB YT",4931*1.1,          IF(V120="HK Local",3300,0)))
    //=IF(V120="FOB HK",T118*220*1.05+110*1.05,IF(V120="FOB YT",T118*(136/0.8*1.1),IF(V120="HK Local",200+80,0)))
    //=IF(V120="FOB HK",T115*220*1.05+5*1.05,  IF(V120="FOB YT",T115*(136/0.8*1.1),IF(V120="HK Local",(550-198)*T115,0)))
    //=IF($V$120="FOB HK",AB193,               IF($V$120="FOB YT",AB196,0))
    //=IF($V$120="FOB HK",AB194,               IF($V$120="FOB YT",AB197,0))
    //=IF($V$120="FOB HK",AB195,               IF($V$120="FOB YT",AB198,0))

    double element1;
    double element2;
    double element3;

    public FOBPrice(double element1, double element2, double element3) {
        this.element1 = element1;
        this.element2 = element2;
        this.element3 = element3;
    }

    public double getElement1() {
        return element1;
    }

    public void setElement1(double element1) {
        this.element1 = element1;
    }

    public double getElement2() {
        return element2;
    }

    public void setElement2(double element2) {
        this.element2 = element2;
    }

    public double getElement3() {
        return element3;
    }

    public void setElement3(double element3) {
        this.element3 = element3;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FOBPrice fobPrice = (FOBPrice) o;

        if (Double.compare(fobPrice.element1, element1) != 0) return false;
        if (Double.compare(fobPrice.element2, element2) != 0) return false;
        return Double.compare(fobPrice.element3, element3) == 0;
    }

    @Override
    public int hashCode() {
        int result;
        long temp;
        temp = Double.doubleToLongBits(element1);
        result = (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(element2);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(element3);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        return result;
    }
}
